
import numpy as np


def sigmoid(x,deriv = False):
    if(deriv):
        return x*(1-x)
    return 1/(1+np.exp(-x))


x1 = np.array(
    [
        [1,1,0],
        [1,1,1],
        [1,0,0],
        [0,0,1],
        [1,0,1],
    ]
)
w0,w1 = np.load("d:/box/demo20.npy")
l0_test = sigmoid(np.matmul(x1,w0))
l1_test = sigmoid(np.matmul(l0_test,w1))
print(l1_test)